-
Notifications
You must be signed in to change notification settings - Fork 821
opentelemetry-instrumentation-django: improve docs for response_hook with examples of providing attributes from middlewares #3923
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
|
| * `Django Response object <https://docs.djangoproject.com/en/5.2/ref/request-response/#httpresponse-objects>`_ | ||
| Adding attributes from middleware context | ||
| ******************************************************************************** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this helpful update!
Would it make sense to have this and the other new sections be subsections under Request and Response hooks? so e.g.
| ******************************************************************************** | |
| ################################################################################ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be as long as the title, also the other titles have the same issue
tammy-baylis-swi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updates, lgtm
Description
Suggested documentation updates:
request_hookruns,so attributes like
request.userorrequest.siteare unavailable there.enduser.id,enduser.username,site.idandsite.domaininresponse_hook.Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
tox -e docsDoes This PR Require a Core Repo Change?
Checklist:
See contributing.md for styleguide, changelog guidelines, and more.